<!DOCTYPE html>
<html>
	<head>
	    <meta charset="UTF-8">
	    <meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
	          name="viewport">
	    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	    <title>私人订制</title>
	    <link rel="stylesheet" href="../css/common.css">
	    <link rel="stylesheet" href="../css/page.css">
	    <script src="../js/jquery-3.2.1.min.js"></script>
	    <script src="../js/media.js"></script>
   		<script src="../js/public.js"></script>
	    <script src="../js/common.js"></script>
	</head>
	<body>
		<div class="Sunbird bc-gray">
	        <div class="bd">
	            <div class="bd-1 bd-0 active">
	                <ul>
	                    <div v-if="allInf.list.length == 0" style="text-align: center;margin-top: 100px;">
	                        暂无数据
	                    </div>
	                    <div v-else>
	                        <li v-for='item in allInf.list' style="margin-bottom:0.1rem;">
	                            <img :src="item.produce_head_image.split(',')[0]" alt="" @click='checkdetail(this)'>
	                            <div class="block">
	                                <p class="p">{{item.produce_title}}</p>
	                                <div class="flex">
	                                    <div class="right">
		                                    	<span style="font-size:0.14rem;">{{item.order_Msg}}</span>
		                                    	<span>{{'¥'+item.produce_price}}</span>
	                                    	</div>
<!--	                                    <div class="left">
	                                        <span>{{item.}}</span>
	                                        <em @click='add_good(this)'>{{item.}}</em>
	                                    </div>-->
	                                </div>
	                            </div>
	                        </li>
	                    </div>
	                </ul>
	            </div>
	        </div>
		</div>
	</body>
    <script src='../js/vue.js'></script>
    <script src='../js/vue-resource.min.js'></script>
    <script type="text/javascript">
    		new Vue({
    			el:".Sunbird",
    			data:{
    				allInf:[],//获取全部产品信息，
    				userInf:[],
    				valStyle:getQueryString('style')
    			},
    			ready:function(){
    				var _this = this;
    				this.$http.get(base_url+'ZITAOHUI/selectCustomization',{
    					params:{
    						store_id:_this.valStyle==1?sessionStorage.getItem("s_id"):'',//私人定制店铺id
    						user_id:_this.valStyle==2?sessionStorage.getItem("uid"):'',//买家id
    						produce_id:'',//私人定制id
    					}
    				}).then(function(response){
    					var _data = response.body.extend
					this.$set('allInf',_data);
    				});
    			},
    			methods:{
    				checkdetail:function(t){
    					window.location.href="personaldetail.html?p_id="+t.item.produce_id+'&o_id='+t.item.order_id+'&flag_us='+this.valStyle
    				},
    			}
    		})
    </script>
</html>
